import request from '@/utils/request'

// 查询商机和联系人关系表列表
export function listBusinessContact(query) {
  return request({
    url: '/zxcrm/businessContact/list',
    method: 'get',
    params: query
  })
}

// 查询商机和联系人关系表详细
export function getBusinessContact(id) {
  return request({
    url: '/zxcrm/businessContact/' + id,
    method: 'get'
  })
}

// 新增商机和联系人关系表
export function addBusinessContact(data) {
  return request({
    url: '/zxcrm/businessContact',
    method: 'post',
    data: data
  })
}

// 修改商机和联系人关系表
export function updateBusinessContact(data) {
  return request({
    url: '/zxcrm/businessContact',
    method: 'put',
    data: data
  })
}

// 删除商机和联系人关系表
export function delBusinessContact(id) {
  return request({
    url: '/zxcrm/businessContact/' + id,
    method: 'delete'
  })
}
